#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class ParentCode : Business.BusinessBase<ParentCode, int>
	{
		#region Fields and Properties

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private String pName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PName
		{
			get { return pName; }
			set
			{
				if (value != pName)
				{
					MarkChanged("PName");
					pName = value;
				}
			}
		}

		private String pCateCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PCateCode
		{
			get { return pCateCode; }
			set
			{
				if (value != pCateCode)
				{
					MarkChanged("PCateCode");
					pCateCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public ParentCode()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override ParentCode DataSelect(int id)
		{
			return Services.DALService.ParentCodeService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.ParentCodeService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.ParentCodeService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.ParentCodeService.Delete(this);
		}

		#endregion Base overrides
	}
}
